package org.feng.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 文件表
 *
 * @author : FengShuai
 * @since : 2024/6/27 9:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pub_file")
@Schema(name = "文件表")
public class PubFile extends Model<PubFile> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Schema(title = "")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 文件名称
     */
    @Schema(title = "文件名称")
    private String fileName;
    /**
     * 文件大小
     */
    @Schema(title = "文件大小")
    private Long fileSize;
    /**
     * 文件类型
     */
    @Schema(title = "文件类型")
    private String fileType;
    /**
     * 文件地址
     */
    @Schema(title = "文件地址")
    private String filePath;
    /**
     * md5值
     */
    @Schema(title = "md5值")
    private String md5;
    /**
     * 上传时间
     */
    @Schema(title = "上传时间")
    private LocalDateTime uploadTime;
}
